#include <iostream>
#include <cstring>
#include <string>
#include "stdMyString.h"

int main()
{
#if 0
    //std::string str;//定义变量写=带参构造
    // stdMyString s = "helle world";//"helle world"隐式转换 成匿名对象
    //std::cout<<s<<std::endl;
    //stdMyString s("hello");
    //stdMyString s1;
    //stdMyString s2;
    //s2 += s += ",jss";
    //s2 = s1 = s;//写赋值运算符的重载防止浅拷贝重复释放，写返回值为了减少拷贝

    // std::cout<<s2<<std::endl;
    // std::cout<<s<<std::endl;

    // if (s == s2)
    // {
    //     std::cout<<"相等\n";
    // }
    stdMyString s;
    std::cin>>s;
    std::cout<<s<<std::endl;

#endif

    stdMyString s("zhangsan,lisi,wangwu");
    myStringList list = s.split(",");
    list -= "lisi";
    std::cout<<list<<std::endl;



    return 0;
}